import request from '@/utils/request' //service

//登录接口
export function login(data) {
  return request({
    method: 'post',
    url: '/login',
    //post 请求的参数放data里
    data: data
  })
}


//验证码
export function captchaImage() {
  return request({
    method: 'get',
    url: '/captchaImage'
  })
}

//获取个人信息
export function getPerson() {
  return request({
    method: 'get',
    url: '/getInfo'
  })
}